package com.UnionPayCenter.account.entity;

import com.UnionPayCenter.account.enums.AccountTypeEnum;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 资金账户
 */
@Getter
@Setter
public class Account {

    /**
     * 账户id
     */
    private Long accountId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 账户类型id
     */
    private Long accountTypeId;

    /**
     * 账户类型
     */
    private AccountTypeEnum accountType;

    /**
     * 商户id,
     */
    private Integer shopId;

    /**
     * 账户余额
     */
    private Integer balance;

    /**
     * 账户透支额度
     */
    private Integer overdraft;

    /**
     * 账户冻结资金
     */
    private Integer freeze;

    /**
     * 账户状态
     */
    private Integer status;

    /**
     * 账户消费优先级,
     */
    private Integer priorityLevel;

    /**
     * 充值次数
     */
    private Integer chargeNum;

    /**
     * 充值总额
     */
    private Integer chargeAmount;

    /**
     * 消费次数
     */
    private Integer payNum;

    /**
     * 消费总额
     */
    private Integer payAmount;

    /**
     * 退款次数
     */
    private Integer refundNum;

    /**
     * 退款总额
     */
    private Integer refundAmount;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

}
